package com.itheima.jdbc;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
	public static void main(String[] args) {
		ApplicationContext applicationContext =new ClassPathXmlApplicationContext("applicationContext.xml");
		AccountService accountService=(AccountService)applicationContext.getBean("accountService");
		accountService.pay(100);
	}

}
